Release 10.1A: OpenEdge Development:
Progress 4GL Reference


DEBUGGER system handle

A handle that lets 4GL procedures initialize and control the Application Debugger.

To use the DEBUGGER handle, you must have the Application Debugger installed in your OpenEdge environment.

Note: Does not apply to SpeedScript programming.

Syntax

DEBUGGER [ :attribute | :method ] 

attribute

Specifies an attribute of the DEBUGGER handle.

method

Specifies a method of the DEBUGGER handle.

Attributes

 

Methods

Example

The following example displays orders for each customer in the sports database using two procedure files. The r-cusbug.p file initializes the Debugger and sets a breakpoint at line 6 of the r-ordbug.p file. Thus, each time r-ordbug.p displays an order, the Debugger takes control before it displays the order lines. Just before completing execution, r-cusbug.p clears the debugging session before returning.

r-cusbug.p
DEFINE NEW SHARED BUFFER CustBuf FOR customer.

DEFINE VARIABLE debug AS LOGICAL. 
debug = DEBUGGER:INITIATE().
debug = DEBUGGER:SET-BREAK("r-ordbug.p",6).

FOR EACH CustBuf:
    IF CAN-FIND(order OF CustBuf) THEN
        RUN r-ordbug.p.
END. /* FOR EACH CustBuf */

debug = DEBUGGER:CLEAR(). 

r-ordbug.p
DEFINE SHARED BUFFER CustBuf FOR customer.

FOR EACH order OF CustBuf:
    DISPLAY CustBuf.Name CustBuf.Cust-num CustBuf.City CustBuf.State 
            CustBuf.Postal-code order.Order-num.
    FOR EACH order-line OF order, item OF order-line:
        DISPLAY item.Item-name item.Item-num order-line.Qty.
    END. /* FOR EACH order-line */
END. /* FOR EACH order */ 

Notes

For more information on the Debugger, its features and functions, and its modes of execution, see OpenEdge Development: Debugging and Troubleshooting .

See also

LOG-MANAGER system handle


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095